package com.hellobike.haxing.common.util;


import com.baomidou.mybatisplus.extension.api.R;
import lombok.extern.slf4j.Slf4j;

import org.springframework.stereotype.Component;


/**
 * 订单工具类
 *
 * @author clz
 */
@Slf4j
@Component
public class OrderUtils {

    /**
     * 订单退款编号生成
     *
     * @return
     */
    public String getReturnAmountBillNo(String billNo) {
        return billNo + "R" + System.currentTimeMillis();
    }

    /**
     * 提现订单编码
     *
     * @return
     */
    public String getShopWithdrewBillNo(Long shopId) {
        return "W"+shopId + "T" + System.currentTimeMillis();
    }

}
